package com.broada.apm.indicator.api.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.broada.apm.dao.IPLocationDao;
import com.broada.apm.indicator.api.IPLocationService;
import com.broada.apm.model.IPLocation;

public class IPLocationServiceImpl implements IPLocationService {

	@Autowired
	private IPLocationDao ipLocationDao;
	
	@Override
	public void addIPLocation(IPLocation ipLocation) {
		ipLocationDao.addIPLocation(ipLocation);
	}

	@Override
	public void updateIPLocation(IPLocation ipLocation) {
		ipLocationDao.updateIPLocation(ipLocation);
	}

	@Override
	public void deleteIPLocation(IPLocation ipLocation) {
		ipLocationDao.deleteIPLocation(ipLocation);
	}

	@Override
	public List<IPLocation> getAllIPLocations() {
		return ipLocationDao.getAllIPLocations();
	}

	@Override
	public List<IPLocation> getIPLocation(IPLocation ipLocation) {
		return ipLocationDao.getIPLocation(ipLocation);
	}

	@Override
	public List<IPLocation> getAllDictIpLocations() {
		return ipLocationDao.getAllDictIpLocations();
	}

	@Override
	public List<IPLocation> getIPLocationByCondition(IPLocation ipLocation) {
		return ipLocationDao.getIPLocationByCondition(ipLocation);
	}

}
